package com.book.book.service;

import com.book.book.domain.ApplyDO;
import com.book.book.domain.BooksDO;
import com.book.common.utils.Query;

import java.util.List;
import java.util.Map;

/**
 * 图书商品表
 * 
 * @author siyuan
 * @email 894266364.com
 * @date 2018-01-27 10:53:23
 */
public interface BooksService {
	
	BooksDO get(Integer bookId);
	
	List<BooksDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(BooksDO books);
	
	int update(BooksDO books);
	
	int remove(Integer bookId);
	
	int batchRemove(Integer[] bookIds);

	/**
	 * 1.将修改后的信息更新到book_apply表中
	 2.判断无重复后，把这本书插入到books表中
	 * @param apply
	 * @return
	 */
    int insertSelective(ApplyDO apply);

	List<BooksDO> getbooks(String userid);

	/**
	 * 带有userName的查询
	 * @param map
	 * @return
	 */
	List<BooksDO> listWithName(Map<String, Object> map);

	List<BooksDO> list();
}
